I want to add a new row with only the "Total" label and the respective value.
const csvContent = Papa.unparse(
items.map(({ value1, value2, value3}, i) => {
let item = {
Index: i + 1,
Name: value1,
Value2: value2,
Value3: value3,
};
return item;
})
);
The table looks like this:
Index | Value1 | Value2 | Value3
1 | value | ... | ....
2 | ... | value | ....
3 | ... | ... | value
And I want it to be like this
Index | Value1 | Value2 | Value3
1 | value | ... | ....
2 | ... | value | ....
3 | ... | ... | value
Total 234234
*With an empty row between the last table row and the total row